package com.inspur.security.cbb3.kms.keymanager.keyorders.repository;

import com.inspur.security.cbb3.kms.keymanager.keyorders.po.KeyOrdersBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 密钥订单
 * @author lijunchang
 */
public interface KeyOrdersRepository extends JpaRepository<KeyOrdersBean, String>, JpaSpecificationExecutor<KeyOrdersBean> {

//    /**
//     * 根据密钥名称、创建人id进行查询
//     * @param name          密钥名称
//     * @param creatorId     创建人id
//     * @return  密钥数量
//     */
//    long countByNameAndCreatorIdOrderByCreatedTimeDesc(String name,String creatorId);
}
